import requests

cookies = {
    'csrftoken': '1LTBmoqX2e6gB9v3rUi4qR_TD3zbOvuvvzoCMSJUB-I',
    '_adadqeqwe1321312dasddocTitle': 'kuaidi100',
    '_adadqeqwe1321312dasddocReferrer': '',
    '_adadqeqwe1321312dasddocHref': '',
    'Hm_lvt_22ea01af58ba2be0fec7c11b25e88e6c': '1746351497,1746411750',
    'HMACCOUNT': '4C9FC21CEE97E099',
    '3AB9D23F7A4B3CSS': 'jdd03LQVNGLWN3AJJHN7LIHSB3URDCHUMBD6BM7NXPO5V7FH7KTZGBWFCTUJQPWRN6WMZCIVDZCEMJ74MVIE3VJV3H4ITY4AAAAMWTZCWREAAAAAACARW73CQISPGWYX',
    '3AB9D23F7A4B3C9B': '443RWYSH7BZGYY75WFZ76TTGLGJEYQPDW5JK5EWKKVWNDVXXZ7MZUXQ5I3DLUHUILWK6JAXRHHB5KRYLVYGK7Y2NZQ',
    '_ga': 'GA1.1.244493602.1746421038',
    '_gcl_au': '1.1.2043108468.1746421038',
    'userRouteID': '174642104097815562',
    '_ga_RX03B5S2PX': 'GS1.1.1746421037.1.1.1746421047.50.0.0',
    'Hm_lpvt_22ea01af58ba2be0fec7c11b25e88e6c': '1746421048',
    'snt_query_meta': '%7B%22date%22%3A%22202545%22%2C%22nums%22%3A%5B%22JT5374406916423%22%5D%7D',
}

headers = {
    'Accept': 'application/json, text/javascript, */*; q=0.01',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Connection': 'keep-alive',
    'Referer': 'https://www.kuaidi100.com/',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36',
    'X-Requested-With': 'XMLHttpRequest',
    'sec-ch-ua': '"Google Chrome";v="135", "Not-A.Brand";v="8", "Chromium";v="135"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    # 'Cookie': 'csrftoken=1LTBmoqX2e6gB9v3rUi4qR_TD3zbOvuvvzoCMSJUB-I; _adadqeqwe1321312dasddocTitle=kuaidi100; _adadqeqwe1321312dasddocReferrer=; _adadqeqwe1321312dasddocHref=; Hm_lvt_22ea01af58ba2be0fec7c11b25e88e6c=1746351497,1746411750; HMACCOUNT=4C9FC21CEE97E099; 3AB9D23F7A4B3CSS=jdd03LQVNGLWN3AJJHN7LIHSB3URDCHUMBD6BM7NXPO5V7FH7KTZGBWFCTUJQPWRN6WMZCIVDZCEMJ74MVIE3VJV3H4ITY4AAAAMWTZCWREAAAAAACARW73CQISPGWYX; 3AB9D23F7A4B3C9B=443RWYSH7BZGYY75WFZ76TTGLGJEYQPDW5JK5EWKKVWNDVXXZ7MZUXQ5I3DLUHUILWK6JAXRHHB5KRYLVYGK7Y2NZQ; _ga=GA1.1.244493602.1746421038; _gcl_au=1.1.2043108468.1746421038; userRouteID=174642104097815562; _ga_RX03B5S2PX=GS1.1.1746421037.1.1.1746421047.50.0.0; Hm_lpvt_22ea01af58ba2be0fec7c11b25e88e6c=1746421048; snt_query_meta=%7B%22date%22%3A%22202545%22%2C%22nums%22%3A%5B%22JT5374406916423%22%5D%7D',
}

params = {
    'type': 'ytexpress',
    'postid': 'YT7542813821770',
    'temp': '0.9810862811829519',
    'phone': '',
}

response = requests.get('https://www.kuaidi100.com/query', params=params, cookies=cookies, headers=headers)

print(response.text)

